package quest.trigger
{
import core.model.GameModel;

import flash.errors.IllegalOperationError;

import quest.IQuestManager;

import values.quest.QuestGroupTemplateValue;

public class QuestTriggerHandlerBase implements IQuestTriggerHandler
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function QuestTriggerHandlerBase(manager:IQuestManager)
	{
		_manager = manager;
	}
	//==========================================================================
	//  Properties
	//==========================================================================
	protected var _manager:IQuestManager;
	
	public function get manager():IQuestManager
	{
		return _manager;
	}
	
	public function get key():String
	{
		throw new IllegalOperationError("key getter should be overrided.");
	}
	
	public function check(type:String, ...args):void
	{
		
	}
	
	protected function questGroupCheck(template:QuestGroupTemplateValue):void
	{
		var level:int = GameModel.instance.playerModel.level.level;
	}
}
}